The type initializer for {Data.DataModule} threw an exception.
        Posted  
        
            by squirms
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by squirms
        
        
        
        Published on 2010-05-04T21:44:30Z
        Indexed on 
            2010/05/04
            21:48 UTC
        
        
        Read the original article
        Hit count: 224
        
In visual basic, when in the "frmMain Events: Load", I get the following error
The type initializer for 'projData.projDataModule' threw an exception.
when running the code:
var = 180
"var" is defined in projDataModule as
Module projDataModule
    Public var As Double
End Module
When I rebuild the solution, It says "0 errors, 0 warnings" and will actually compile, however the Error list shows the following error:
Error   1   Custom tool error: Failed to generate file: There is an error in XML document (1, 1).   I:\Documents and Settings\Bill\Desktop\Projects\Data\My Project\Application.myapp   1   1   Data
Any ideas or help at all would be greatly appreciated. Thanks in advance.
© Stack Overflow or respective owner